﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CompanyQuery.aspx.cs" Inherits="Manage_CompanyQuery" %>

<%@ Register Src="../System/DbPageFlip.ascx" TagName="DbPageFlip" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
</head>
<body>

    <script language="javascript" type="text/javascript">
    function SelelctCompany(CompanyID,CompanyName)
    {
		    var obj=new Object;
		    obj.companyid = CompanyID;
		    obj.companyName = CompanyName;
    	    self.opener.confirmvalue(obj);
		    window.close();
    }
    </script>

    <form id="form1" runat="server">
        <div>
    <table width="98%">
        <tr>
            <td align="right" style="height: 26px">
                <asp:Label ID="Label2" runat="server" Text="单位名称："></asp:Label></td>
            <td style="height: 26px">
                <asp:TextBox ID="txtAttorneyName" runat="server"></asp:TextBox>
                <asp:Button ID="Button6" runat="server" Text="查  询" />
                </td>
        </tr>
    </table>
    <asp:DataList ID="DlAttorney" runat="server" Width="98%">
        <HeaderTemplate>
            <table width="98%">
                <tr>
                    <td align="center" width="65%">
                        企业名称</td>
                    <td align="center" width="32%">
                        选  择</td>
                </tr>
            </table>
        </HeaderTemplate>
        <ItemTemplate>
            <table width="98%">
                <tr>
                    <td width="65%" align="center">
                        <%# DataBinder.Eval(Container.DataItem, "CompanyName")%>
                    </td>
                    <td width="32%" align="center"><a href="javascript:SelelctCompany('<%# DataBinder.Eval(Container.DataItem, "AccountID")%>','<%# DataBinder.Eval(Container.DataItem,"companyName")%> ')">
                                            选择企业 </a>
                        
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:DataList>
            <uc1:DbPageFlip ID="DbPageFlip1" runat="server" />
        </div>
    </form>
</body>
</html>
